package pl.freetimetool.service;

import java.util.Collection;
import java.util.List;

import pl.freetimetool.domain.Account;
import pl.freetimetool.domain.AccountRole;
import pl.freetimetool.exceptions.UserExistsException;

public interface AccountService extends org.springframework.security.core.userdetails.UserDetailsService {

	void registerAccount(Account account, List<AccountRole> ar) throws UserExistsException;

	Collection<Account> listAccounts(Collection<AccountRole> roles);

	Account getAccount(final String username);

	void removeAccount(final String username);

}
